package com.yc.commontlib.test;

import android.app.Application;
import android.util.Log;

import com.yc.commontlib.net.YcNetUtil;

/**
 * Creator: yc
 * Date: 2021/6/2 10:28
 * UseDes:
 */

public class HostProviderTest2 {
    private static HostProviderTest2 mInstant;

    public static HostProviderTest2 getInstance() {
        return mInstant;
    }

    private static Application mApplication;

    public static Application getApplication() {
        return mApplication;
    }

    public static String mMsg = "init";

    public static void init(Application application) {
        Log.e("HostProviderTest", "init");
        mInstant = new HostProviderTest2();
        mApplication = application;
    }

    public static void print() {
        Log.e("HostProviderTest", "-----HostProviderTest22------" + mMsg + "-----");
        if (YcNetUtil.INSTANCE.isNetworkAvailable()) {
            Log.e("HostProviderTest", "-----HostProviderTest223------有网络-----");
        } else {
            Log.e("HostProviderTest", "-----HostProviderTest22------无网络-----");
        }
    }
}
